package com.ruoyi.passenger.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.passenger.mapper.TbPassengerFlowMapper;
import com.ruoyi.passenger.domain.TbPassengerFlow;
import com.ruoyi.passenger.service.ITbPassengerFlowService;

/**
 * 个人用户充值列-新增Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-08-19
 */
@Service
public class TbPassengerFlowServiceImpl implements ITbPassengerFlowService 
{
    @Autowired
    private TbPassengerFlowMapper tbPassengerFlowMapper;

    /**
     * 查询个人用户充值列-新增
     * 
     * @param flowId 个人用户充值列-新增主键
     * @return 个人用户充值列-新增
     */
    @Override
    public TbPassengerFlow selectTbPassengerFlowByFlowId(Long flowId)
    {
        return tbPassengerFlowMapper.selectTbPassengerFlowByFlowId(flowId);
    }

    /**
     * 查询个人用户充值列-新增列表
     * 
     * @param tbPassengerFlow 个人用户充值列-新增
     * @return 个人用户充值列-新增
     */
    @Override
    public List<TbPassengerFlow> selectTbPassengerFlowList(TbPassengerFlow tbPassengerFlow)
    {
        return tbPassengerFlowMapper.selectTbPassengerFlowList(tbPassengerFlow);
    }

    /**
     * 新增个人用户充值列-新增
     * 
     * @param tbPassengerFlow 个人用户充值列-新增
     * @return 结果
     */
    @Override
    public int insertTbPassengerFlow(TbPassengerFlow tbPassengerFlow)
    {
        return tbPassengerFlowMapper.insertTbPassengerFlow(tbPassengerFlow);
    }

    /**
     * 修改个人用户充值列-新增
     * 
     * @param tbPassengerFlow 个人用户充值列-新增
     * @return 结果
     */
    @Override
    public int updateTbPassengerFlow(TbPassengerFlow tbPassengerFlow)
    {
        return tbPassengerFlowMapper.updateTbPassengerFlow(tbPassengerFlow);
    }

    /**
     * 批量删除个人用户充值列-新增
     * 
     * @param flowIds 需要删除的个人用户充值列-新增主键
     * @return 结果
     */
    @Override
    public int deleteTbPassengerFlowByFlowIds(Long[] flowIds)
    {
        return tbPassengerFlowMapper.deleteTbPassengerFlowByFlowIds(flowIds);
    }

    /**
     * 删除个人用户充值列-新增信息
     * 
     * @param flowId 个人用户充值列-新增主键
     * @return 结果
     */
    @Override
    public int deleteTbPassengerFlowByFlowId(Long flowId)
    {
        return tbPassengerFlowMapper.deleteTbPassengerFlowByFlowId(flowId);
    }
}
